<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/6/29
  Time: 17:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>修改班级</title>
    <style>
        input{
            width: 200px;
            height: 30px;
        }
    </style>
</head>
<body>
<form action="/class/Update" method="post">
<c:forEach items="${list}" var="k">
    <span>班级 i d&nbsp;&nbsp;</span><input type="text" readonly="readonly" name="cid" value=${k.cid} ><br><br>
    <span>班级名称&nbsp;&nbsp;</span><input type="text" name="cname" value=${k.cname} ><br><br>
    <span>班级级别&nbsp;&nbsp;</span><select name="cgrade" >
        <c:if test="${k.cgrade=='小学'}">
            <option selected="selected">小学</option>
            <option>初中</option>
            <option>高中</option>
        </c:if>
        <c:if test="${k.cgrade=='初中'}">
            <option>小学</option>
            <option selected="selected">初中</option>
            <option>高中</option>
        </c:if>
        <c:if test="${k.cgrade=='高中'}">
            <option>小学</option>
            <option>初中</option>
            <option selected="selected">高中</option>
        </c:if>

    </select><br><br>
    <span>班级状态&nbsp;&nbsp;</span><select name="cstate">
        <c:if test="${k.cstate=='开班'}">
            <option selected="selected">开班</option>
            <option>毕业</option>
        </c:if>
        <c:if test="${k.cstate=='毕业'}">
            <option>开班</option>
            <option selected="selected">毕业</option>
        </c:if>
    </select><br><br>
    <span>开班日期&nbsp;&nbsp;</span><input type="date" name="ccreatime" value="${k.ccreatime}"><br><br>
    <span>老&nbsp;&nbsp;&nbsp;&nbsp;师&nbsp;&nbsp;</span><input type="text" name="teacherid" value="${k.teacher}"><br><br>
    <input type="submit" value="确认修改" style="margin-left: 50px;background-color: coral;height: 35px;">
</c:forEach>
</form>
</body>

</html>
